{extend name="public/base"}

{block name="main"}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 会员列表<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="Hui-article">
    <article class="cl pd-20">
        <form action="?" method="post" class="form form-horizontal">
            <div id="tab-system" class="HuiTab">
                <div class="tabBar cl"><span>基本设置</span><span>订单设置</span><span>结算设置</span></div>
                <div class="tabCon">
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站名称：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" id="website-title" name="title" placeholder="控制在25个字、50个字节以内" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>关键词：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" id="website-Keywords" name="keywords" placeholder="5个左右,8汉字以内,用英文,隔开" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>描述：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" id="website-description" name="description" placeholder="空制在80个汉字，160个字符以内" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>底部版权信息：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" id="website-copyright" name="copyright" placeholder="&copy; 2014 H-ui.net" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">备案号：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" id="website-icp" name="icp" placeholder="京ICP备00000000号" value="" class="input-text">
                        </div>
                    </div>
                </div>
                <div class="tabCon">
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">发货后自动确认期限（天）：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" name="automatic_confirmation_period" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">确认后自动完成期限（天）：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" name="automatic_deadline" value="" class="input-text">
                        </div>
                    </div>
                </div>
                <div class="tabCon">
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">一级推荐人收益（%）：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" name="referrer_level_1" value="" class="input-text">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">二级推荐人收益（%）：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" name="referrer_level_2" value="" class="input-text">
                        </div>
                    </div>
                </div>
                <div class="tabCon"> </div>
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                    <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </article>
</div>
{/block}

{block name="javascript"}
<script>
    $(function() {
        $('form').submit(function () {
            var _this = $(this);
            $.ajax({
                type : 'POST',
                url : _this.attr('action'),
                data : _this.serialize(),
                dataType : 'json',
                success : function (msg) {
                    layer.msg(msg.msg, {icon: 6,time:1000});
                    setTimeout(function () {
                        if (msg.code == 1) {
                            //parent.location.reload();  // 刷新主页面
                        }
                    }, 500);
                }
            });
            return false;
        });
    });
</script>
{/block}